package com.yqg.protection.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * current_yg 实体类
 *
 * @author zxf
 * @since 2025-08-29
 */
@Getter
@Setter
@TableName("current_yg")
@ApiModel(value = "CurrentYg对象", description = "烟感设备实时数据表")
public class CurrentYg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备ID（主键）")
    @TableId(value = "equipment_input_store_id")
    private Long equipmentInputStoreId;

    @ApiModelProperty("发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    @ApiModelProperty("业务数据类型")
    private Integer businesstype;

    @ApiModelProperty("设备ID")
    private Integer smokeid;

    @ApiModelProperty("设备MAC")
    private String mac;

    @ApiModelProperty("设备类型")
    private String devicetype;

    @ApiModelProperty("信号强度")
    private Integer dsignal;

    @ApiModelProperty("电池状态")
    private Integer batterys;

    @ApiModelProperty("电量(%)")
    private Integer volvalue;

    @ApiModelProperty("电压值(mV)")
    private Integer voltagevalue;

    @ApiModelProperty("IMSI")
    private String imsi;

    @ApiModelProperty("消息ID")
    private Long xdsmokelogid;

    @ApiModelProperty("事件类型")
    private Integer messagetype;

    @ApiModelProperty("温度值(°C)")
    private String tvalue;

    @ApiModelProperty("保留字段")
    private Integer cstatus;

    @ApiModelProperty("IMEI")
    private String imei;

    @ApiModelProperty("设备型号")
    private String dtypename;
    @ApiModelProperty("设备安装的站点地址")
    private String siaddress;
    @ApiModelProperty("设备安装的楼层")
    private String sitelname;
    @ApiModelProperty("设备安装的详细地址")
    private String installaddress;
    @ApiModelProperty("经度")
    private Long longitude;
    @ApiModelProperty("纬度")
    private Long latitude;
}
